package com.example.demo.many2many;


import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = Many2ManyQueueConfig.queueName)
public class ManyReceive2 {

    @RabbitHandler
    public void receive(ManyModle manyModle) {
        System.out.println("ManyReceive2:" + manyModle.getAge() + ":" + System.currentTimeMillis());
    }
}
